package com.exchangeek.server.entity.config;

/**
 * Created with IntelliJ IDEA.
 * Project Name: Exchangeek_Server
 * Date Created: 2013/09/14 下午6:07
 *
 * @author Wings
 */
public class SqlConnectionConfig {

    private String driver;
    private String databaseUrl;
    private String userName;
    private String password;

    public static SqlConnectionConfig getDefault(String databaseName) {
        SqlConnectionConfig config = new SqlConnectionConfig();
        config.setDriver("com.mysql.jdbc.Driver");
        config.setDatabaseUrl("jdbc:mysql://127.0.0.1:3306/" + databaseName);
        config.setUserName("DB_Manager");
        config.setPassword("dbmanager12315");
        return config;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getDatabaseUrl() {
        return databaseUrl;
    }

    public void setDatabaseUrl(String databaseUrl) {
        this.databaseUrl = databaseUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
